﻿using System;
namespace Gx.Model
{
    /// <summary>
    /// 员工考勤信息
    /// </summary>

    [Serializable]
    public partial class E_EmpAttendanceInfo
    {
        private int _attendanceid;
        private int _empid;
        private string _empnum;
        private string _empname;
        private decimal _workday;
        private DateTime _startworktime;
        private DateTime _endworktime;
        private byte _attendanctype;
        private byte _isexception;
        private decimal _salary;
        private string _countdate;
        private byte _status;
        private int _adduser;
        private DateTime _addtime;
        private int _lastedituser;
        private DateTime _lastedittime;
        public int AttendanceId
        {
            get
            {
                return _attendanceid;
            }
            set { _attendanceid = value; }
        }
        public int EmpId
        {
            get
            {
                return _empid;
            }
            set { _empid = value; }
        }
        public string EmpNum
        {
            get
            {
                if (_empnum == null)
                {
                    return "";
                }
                return _empnum;
            }
            set { _empnum = value; }
        }
        public string EmpName
        {
            get
            {
                if (_empname == null)
                {
                    return "";
                }
                return _empname;
            }
            set { _empname = value; }
        }
        public decimal WorkDay
        {
            get
            {
                return _workday;
            }
            set { _workday = value; }
        }
        public DateTime StartWorkTime
        {
            get
            {
                if (_startworktime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _startworktime;
            }
            set { _startworktime = value; }
        }
        public DateTime EndWorkTime
        {
            get
            {
                if (_endworktime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _endworktime;
            }
            set { _endworktime = value; }
        }
        public byte AttendancType
        {
            get
            {
                return _attendanctype;
            }
            set { _attendanctype = value; }
        }
        public byte IsException
        {
            get
            {
                return _isexception;
            }
            set { _isexception = value; }
        }
        public decimal Salary
        {
            get
            {
                return _salary;
            }
            set { _salary = value; }
        }
        public string CountDate
        {
            get
            {
                if (_countdate == null)
                {
                    return "";
                }
                return _countdate;
            }
            set { _countdate = value; }
        }
        public byte Status
        {
            get
            {
                return _status;
            }
            set { _status = value; }
        }
        public int AddUser
        {
            get
            {
                return _adduser;
            }
            set { _adduser = value; }
        }
        public DateTime AddTime
        {
            get
            {
                if (_addtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _addtime;
            }
            set { _addtime = value; }
        }
        public int LastEditUser
        {
            get
            {
                return _lastedituser;
            }
            set { _lastedituser = value; }
        }
        public DateTime LastEditTime
        {
            get
            {
                if (_lastedittime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _lastedittime;
            }
            set { _lastedittime = value; }
        }
    }

    public partial class E_EmpAttendanceInfo
    {
        /// <summary>
        /// 考勤类型名称
        /// </summary>
        public string AttendancTypeName { get; set; }
        /// <summary>
        /// 试用期天数
        /// </summary>
        public byte ProbationPeriodDay { get; set; }
    }
}
